{% extends 'base/base.html' %}
{% load static %}
{% block title %}岗位信息列表{% endblock %}
{% block content %}
    <link rel="stylesheet" type="text/css" href="{% static 'css/post.css' %}"/>
    <div id="list">
        {% load mytag %}
        <h1>当前日期：{% current_time %}<br/></h1>
        <h1>岗位信息列表</h1>
        <div class="counter">共有<strong>{{ counter }}</strong>个岗位</div>
        <table>
            <thead>
            <tr>
                <th>序号</th>
                <th>岗位名称</th>
                <th>创建日期</th>
            </tr>
            </thead>
            {% for post in posts %}
                <tr>
                    <td>
                        {{ post.id }}
                    </td>
                    <td>
                        {{ post.name }}
                    </td>
                    <td>
                        {{ post.createDate | date:'Y-n-d' }}
                    </td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}